<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<style>
			body {
				margin: 0;
				padding: 0;
			}

			.handle {
				position: fixed;
				right: 30px;
				bottom: 30px;
			}
			.handle .item {
				width: 60px;
				height: 40px;
				background-color: brown;
				text-align: center;
				line-height: 40px;
				color: #fff;
				border-radius: 8px;
				cursor: pointer;
			}

			.handle .item:hover {
				background-color: aqua;
				color: #000;
			}

			.top {
				margin-bottom: 10px;
			}
		</style>
	</head>
	<body>
		<div class="handle">
			<div class="top item">顶部</div>
			<div class="bottom item">底部</div>
		</div>

		<br /><br /><br /><br /><br /><br /><br /><br />
		<br /><br /><br /><br /><br /><br /><br /><br />
		<br /><br /><br /><br /><br /><br /><br /><br />
		<br /><br /><br /><br /><br /><br /><br /><br />
		<br /><br /><br /><br /><br /><br /><br /><br />
		<br /><br /><br /><br /><br /><br /><br /><br />
	</body>
</html>
